package com.pingbu.common.bean;

public class ResultBean<C> {

    private int code;

    private String msg;

    private C data;

    public static ResultBean create(int _code,String _msg,Object _data){
        ResultBean rb=new ResultBean();
        rb.code = _code;
        rb.msg = _msg;
        rb.data = _data;
        return rb;
    }

    public static ResultBean create(int _code,String _msg){
        return create(_code,_msg,null);
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public C getData() {
        return data;
    }

    public void setData(C data) {
        this.data = data;
    }
}
